package masterlink.futures.vo;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

import masterlink.futures.vo.VolatilityComm.PK;
@Entity
@Table(name="SYS_ALERT_SETTING")
public class SysAlert implements Serializable{
	private static final long serialVersionUID = 3310550477002060978L;
	@Id
	@Column(name="name")
	private String name;
	@Column(name="downlimit")
	private int downlimit;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getDownlimit() {
		return downlimit;
	}
	public void setDownlimit(int downlimit) {
		this.downlimit = downlimit;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("SysAlert [name=");
		builder.append(name);
		builder.append(", downlimit=");
		builder.append(downlimit);
		builder.append("]");
		return builder.toString();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SysAlert other = (SysAlert) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
}
